package lab02.test13;

public class School extends ComputerAverage{
    //总分除以总科目
    double sum = 0;

    @Override
    double averarg(double[] scores) {
        for (int i = 0;i<scores.length;i++ ){
            sum=sum+scores[i];
        }
        return sum/scores.length;
    }
    School() {
        System.out.println("School中计算平均分的方法是直接是总分除以总科目");
    }
}
